# Contributor: Dhruvin Gandhi <contact@dhruvin.dev>
# Maintainer: Dhruvin Gandhi <contact@dhruvin.dev>
pkgname=hledger-timeclock
pkgver=0.3.0
pkgrel=0
pkgdesc="hledger addon to track time"
url="https://git.sr.ht/~dhruvin/hledger-timeclock"
arch="all"
license="GPL-3.0-or-later"
makedepends="go"
subpackages="$pkgname-bash-completion
	$pkgname-zsh-completion
	$pkgname-fish-completion"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~dhruvin/hledger-timeclock/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check"  # no tests

build() {
	make all
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr \
		FISHCOMPDIR=/usr/share/fish/completions install
}

sha512sums="
699ebd52ef2d8dc41517c20fb0a9e61f541f7873e95b785db1185503f00a8ca4cc15cc6cdfe335edb8e4c9b4bf4ef7dd5be7705dbb952a005069d704c133789a  hledger-timeclock-0.3.0.tar.gz
"
